import request from '@/utils/request'

// 查询完成项目列表
export function listCompleted(query) {
  return request({
    url: '/project/completed/list',
    method: 'get',
    params: query
  })
}

// 查询完成项目详细
export function getCompleted(completionId) {
  return request({
    url: '/project/completed/' + completionId,
    method: 'get'
  })
}

// 新增完成项目
export function addCompleted(data) {
  return request({
    url: '/project/completed',
    method: 'post',
    data: data
  })
}

// 修改完成项目
export function updateCompleted(data) {
  return request({
    url: '/project/completed',
    method: 'put',
    data: data
  })
}

// 删除完成项目
export function delCompleted(completionId) {
  return request({
    url: '/project/completed/' + completionId,
    method: 'delete'
  })
}
